﻿<%@ Page Language="C#" MasterPageFile="~/Share.Master" AutoEventWireup="true" CodeBehind="newsreading.aspx.cs"
    Inherits="Web.newsreading" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <form id="form1" runat="server">
    <div class="content">
        <div class="nav">
            <ul >
                <li class="newsback"><span><a  href="news.aspx?cid=0" title="点击返回"></a></span></li>
                <ul class="newsnavlist">
                <asp:Repeater ID="NewsCategoryRepeater" runat="server">
                    <ItemTemplate>
                        <li class="<%# Eval("CurrentFlag")%>"><span><a href="news.aspx?cid=<%# Eval("CategoryID")%>">
                            <%# DataBinder.Eval(Container.DataItem, "CategoryName") %></a></span>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
                </ul>
            </ul>
            <div class="nppager">
                <asp:ImageButton ID="btn_pre" runat="server" ImageUrl="~/images/wnp.png" OnClick="btn_pre_Click" />
                <asp:ImageButton ID="btn_next" runat="server" ImageUrl="~/images/wnn.png" OnClick="btn_next_Click" />
            </div>
        </div>
        <div class="newsread">
            <asp:DataList ID="NewsInfoData" runat="server">
                <ItemTemplate>
                    <div class="newsimg">
                        <img src='<%# Eval("NewsPicURL") %>' height="90px" width="130px" /></div>
                    <div class="newscontent">
                        <div class="newstitle">
                            <span class="newstime">
                                <%# Eval("ShowTime") %></span>
                            <%# Eval("Title") %>
                        </div>
                        <div class="newsbody">
                            <%# Eval("NewsContent") %>
                        </div>
                    </div>
                </ItemTemplate>
            </asp:DataList>
            <div class="newstop">
                <div id="backtop" style="display:none;"><a href="javascript:scroll(0,0);"><img src="images/backtop.gif" alt="返回顶部" title="返回顶部" /></a></div>
            </div>
        </div>
    </div>
    </form>
</asp:Content>

<asp:Content ID="content2" ContentPlaceHolderID="jsContent" runat="server">
  <script type="text/javascript">
      $(function() { $(".newsnavlist").lavaLamp({ fx: "backout", speed: 700 }) });

      $(function() {
          $(window).scroll(function() {
              var tHeight = $(document).scrollTop();
              if (tHeight > 10) {
                  $("#backtop").css("display", "");
              } else {
                  $("#backtop").css("display", "none");
              }
          });
      });
  	
  </script>
</asp:Content>